<?php

namespace ESign\Response\Organizations;

use ESign\Response\Response;

class UpdateByThirdId extends Response {

	private $orgId;
	private $name;
	private $idType;
	private $idNumber;
	private $thirdPartyUserId;

	public function resolve(): Response{
		parent::resolve();

		if ($this->isSuccess()) {
			$this->orgId            = $this->body['orgId'] ?? '';
			$this->name             = $this->body['name'] ?? '';
			$this->idType           = $this->body['idType'] ?? '';
			$this->idNumber         = $this->body['idNumber'] ?? '';
			$this->thirdPartyUserId = $this->body['thirdPartyUserId'] ?? '';
		}

		return $this;
	}

	/**
	 * @return mixed
	 */
	public function getOrgId() {
		return $this->orgId;
	}

	public function getName() {
		return $this->name;
	}

	public function getIdType() {
		return $this->idType;
	}

	public function getIdNumber() {
		return $this->idNumber;
	}

	public function getThirdPartyUserId() {
		return $this->thirdPartyUserId;
	}
}
